home *** CD-ROM | disk | FTP | other *** search
/ Champak 132 (Alt) / Vol 132.iso / games / magic_eg.swf / scripts / DefineSprite_27 / frame_1 / DoAction.as
Encoding:
Text File  |  2011-06-09  |  555 b   |  27 lines

  1. set("/:score","0");
  2. state = "1";
  3. eggWidth = "12";
  4. eggHeigth = "5";
  5. i = "1";
  6. j = "0";
  7. while(eggWidth >= i)
  8. {
  9.    while(j < eggHeigth)
  10.    {
  11.       duplicateMovieClip("/egg","egg" add (j * eggWidth + i),"16384" + (j * eggWidth + i));
  12.       setProperty("/egg" add (j * eggWidth + i), _X, i * "40" + "40");
  13.       setProperty("/egg" add (j * eggWidth + i), _Y, j * "45" + "50");
  14.       j += "1";
  15.    }
  16.    i += "1";
  17.    j = "0";
  18. }
  19. call("initdate");
  20. call("setdate");
  21. call("changecolor");
  22. tellTarget("/hitball")
  23. {
  24.    gotoAndPlay(2);
  25. }
  26. stop();
  27.